home *** CD-ROM | disk | FTP | other *** search
/ Software of the Month Club 2000 May / SOMC_May2000-Ultimate.iso / pc / Programs / xsetup / _SETUP.2 / Group3 / XQ WinNT QuickBoot.xpl < prev    next >
Encoding:
XSetup plugin  |  1999-11-09  |  1.2 KB  |  49 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 5.0"
  2. "TYPE"="6"
  3. "COUNT"="1"
  4. "UIPATH"="General Usage\Windows NT"
  5. "NAME"="Quick Reboot"
  6. "VERSION"="1.03"
  7. "LANGUAGE"="VBScript"
  8. "TEXT 1"="Enable CTRL+SHIFT+ALT+DEL quick reboot"
  9. "DESCRIPTION 1"="Activating this option allows you to press CTRL+SHIFT+ALT+DEL to reboot your PC."
  10. "DESCRIPTION 2"="The "normal" CTRL+ALT+DEL will still show the "Windows NT Security" screen."
  11. "AUTHOR"="Xteq Systems"
  12. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  13. "COMMENT 1"="For more information, go to http://www.xteq.com or write to TeXHeX@xteq.com."
  14. "COMMENT 2"="Thanks to Chris [CGMT@flashmail.com] for the "non-NT but not disabled" bug notice. "
  15.  
  16.  
  17. sPath="HKLM\Software\Microsoft\Windows NT\CurrentVersion\WinLogon\"
  18. sV1="EnableQuickReboot"
  19. Sub Plugin_Initialize 
  20.  if GetWinVer=2 then
  21.     i=RegReadValue(sPath & sV1)
  22.     if i=1 then
  23.        SetUIElement 1,true 
  24.     end if
  25.  else
  26.     Call Disable()
  27.  end if
  28. End Sub
  29.  
  30. Sub Plugin_CheckData(ElementIndex)
  31. End Sub
  32.  
  33. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  34.  b=GetUIElement(1)
  35.  if b=true then
  36.     Call RegWriteValue(sPAth & sV1,1,1)
  37.  else
  38.     Call RegWriteValue(sPAth & sV1,0,1)
  39.  end if
  40.  
  41.  Call Restart()
  42. End Sub
  43.  
  44. Sub Plugin_Terminate 
  45. End Sub
  46.  
  47.  
  48.  
  49.